package tests.pl.shenlon.poker.game.gametypes;

import pl.shenlon.poker.game.GameState;
import pl.shenlon.poker.game.PlayerAction;
import pl.shenlon.poker.game.PlayerActionType;
import pl.shenlon.poker.game.PokerPlayer;
import pl.shenlon.poker.game.gametypes.PokerGame;

public class MockPokerPlayer extends PokerPlayer {

	private final PlayerActionType actionType;

	private final String name;

	public MockPokerPlayer(int cash, PlayerActionType actionType, String name) {
		super(cash);
		this.actionType = actionType;
		this.name = name;
	}

	@Override
	public PlayerAction act(PokerGame game,
			PlayerActionType... allowedActionTypes) {
		return new PlayerAction(actionType, new GameState(game, this));
	}

	@Override
	public String toString() {
		return name + ": " + actionType;
	}


}
